function  sort(arr) {


  let n = Math.floor(arr.length / 2);

  while(n>=1){

for(let i = 0; i < n; i++){
  let temp = []
for(let j = 0;i <arr.length; j =j +n){
  temp.push(arr[j])
}
sort(temp);
}

    n  = Math.floor(n / 2)
  }

}
